

update detail_sales set gain = (price - (price_entry * disc_inventario )) * quantity;
